<?php if (isset($_GET['page'])) : ?>
  <?php
  print render($page['content']);
  ?>
<?php else : ?>
  <div id="container">
    <div id="header">
      <div class="hgroup">
        <div class="l-header">
          <?php print render($page['left_header']); ?>				
        </div><!-- / left header -->
        <div class="r-header">				
          <?php print render($page['right_header']); ?>
        </div><!-- / right header -->
      </div>
      <?php print render($page['menu']); ?>		
    </div><!-- / header -->
    <div id="main">
      <div id="content">
        <?php print render($page['content']); ?>
      </div><!-- / id content -->
    </div><!-- / id main -->
    <?php print render($page['footer']); ?>	
    <div id="mask">
      <div class="layer"></div>
      <?php print render($page['popup']) ?>
    </div>
  </div><!-- / id container -->
<?php endif; ?>